package org.example.completed.domain;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Product implements Serializable {
    private String id;

    private String name;

    private String imageUrl;

    private BigDecimal price;

    private int stock;

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;
}